package day05;

public class MethhodDemo1 {
    public static void main(String[] args) {
        /*say();
        sayHi("王满满");
        sayHi("不靠谱的度小满");


        sayHello("王空空",18);
        sayHello("王满满",6);

         */
        say();
        say("王空空");
        say("王满满",22);
        say(11);
    }

    public static void say (){
        System.out.println("大噶好，我叫myw,今年22岁");

    }
    public static void say(String name) {
        System.out.println("大家好，我叫"+name+",今年22岁了。");
    }
    public static void say(String name,int age){
        if (age>=60){
            return;
        }
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了。");
    }
    public static void say(int adderss){
        System.out.println(adderss);
    }
}
